import com.manager.pojo.GoodsCategory;
import com.manager.service.goodCategoryService;
import com.manager.vo.GoodsCategoryVo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = com.manager.ManagerApplication.class)
public class test {
    @Autowired
    private com.manager.service.goodCategoryService goodCategoryService;

    @Test
    public void test(){
        List<GoodsCategoryVo> goodsCategoriesvo = goodCategoryService.selectCategoryForView();
        System.out.println(goodsCategoriesvo);
    }
}
